package com.zlc.common.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum SysControlType {

    SYS_CACHE("SYS_CACHE","系统内存"),
    SYS_THREAD("SYS_THREAD","线程"),
    SYS_CPU("SYS_CPU","CPU"),;

    final String controlType;
    final String remark;

    public static SysControlType controlType(String controlType){
        SysControlType[] values = SysControlType.values();
        for(SysControlType typeEnum : values){
            if(typeEnum.getControlType().equals(controlType)){
                return typeEnum;
            }
        }
        return null;
    }

}
